# Register your models here.
from django.contrib import admin
from goods.models import Goods, GoodsCategory, GoodsAlbum


class GoodsInfoAdmin(admin.ModelAdmin):
    # 每页展示行数
    list_per_page = 60

    # 该列表页展示 id 和 btitle, 其他的不展示
    list_display = ['id', 'title', 'category']


admin.site.register(Goods, GoodsInfoAdmin)
admin.site.register(GoodsCategory)
admin.site.register(GoodsAlbum)
